package com.myapi.client;


import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;




@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class CardInfo implements Serializable{
	   @PrimaryKey      
	   @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		     private String cId; 
	
	@Persistent
	public static final String SPADE = "Spade";
	@Persistent
	public static final String HEART = "Heart";
	@Persistent
	public static final String CLUB = "Club";
	@Persistent
	public static final String DIAMOND = "Diamond";
	
	@Persistent
	private int value;  //2 = 2, Jack = 11, Queen = 12, King = 13, Ace = 14
	@Persistent
	private String suit;
	
	public CardInfo(){
		
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getSuit() {
		return suit;
	}

	public void setSuit(String suit) {
		this.suit = suit;
	}

	
	
}
